﻿<%@ Page Title="" Language="C#" MasterPageFile="~/masterpage_index.master" AutoEventWireup="true" CodeFile="search_profiles.aspx.cs" Inherits="search_profiles" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="ajaxToolkit" %>


<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder3" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
   <table align="center" cellpadding="0" cellspacing="0" style="margin-top:20px;padding:0;border:1px solid #C1DAD7;">
           			
                    	<tr>
                 		    <th align="right">
                                <asp:TextBox 
                    ID="txtFullName" runat="server" 
                    CssClass="box" Width="377px" TabIndex="94"></asp:TextBox>
                                <ajaxToolkit:AutoCompleteExtender ID="txtFullName_AutoCompleteExtender" 
                                    runat="server" Enabled="True" ServicePath="~/WebSevices/wsSearchProfiles.asmx" 
                                    MinimumPrefixLength="1"
                                    TargetControlID="txtFullName" ServiceMethod="Get_List_FullName" EnableCaching="true">
                                </ajaxToolkit:AutoCompleteExtender>
            &nbsp;<asp:Button ID="btnSearch" runat="server" 
                                    Text="Search" CssClass="button white" onclick="btnSearch_Click"  />
                          
                             
                            </th>
                        
                   	</tr>
           			
                    	</table>
                    	
                    	
            <br />
    <ajaxToolkit:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
        <Services>
            <asp:ServiceReference Path="~/wsSearchProfiles.asmx" />
        
        </Services>
    </ajaxToolkit:ToolkitScriptManager>
    <br />
                    	
           <asp:GridView ID="gdProfiles" runat="server" AllowPaging="True" AutoGenerateColumns="False"                    
                  
                   CssClass="border_grid" HorizontalAlign="Center" 
                       
                        
                        onpageindexchanging="gdProfiles_PageIndexChanging" AllowSorting="True" 
                        onsorting="gdProfiles_Sorting" onrowcreated="gdProfiles_RowCreated">
                   <PagerStyle CssClass="grid_footer_pager" />
                   <Columns>
                       <asp:TemplateField HeaderText="No">
                           <HeaderStyle CssClass="header_grid" />
                           <ItemTemplate>
                                   <%#Container.DataItemIndex + 1%>
                           </ItemTemplate> 
                           <ItemStyle HorizontalAlign="Center" />
                       </asp:TemplateField>
                       <asp:TemplateField HeaderText="Profile_id">
                             <ItemTemplate>
                                   <%#Eval("profile_id")%>
                           </ItemTemplate> 
                       </asp:TemplateField>
                       <asp:TemplateField HeaderText="Fullname" SortExpression="fullname">
                       <HeaderStyle CssClass="header_grid" />
                          <ItemTemplate>
                             <%#Eval("fullname") %>
                          </ItemTemplate>
                                        
                           <ItemStyle HorizontalAlign="Left" />
                                        
                       </asp:TemplateField>
                          
                       <asp:BoundField HeaderText="B.O.D" DataFormatString="{0:dd-MM-yyy}" 
                           DataField="birth">
                         <HeaderStyle CssClass="header_grid" />
                           
                         <ItemStyle HorizontalAlign="Center" />
                       
                       </asp:BoundField>
                       
                       <asp:TemplateField HeaderText="Tele">
                       <HeaderStyle CssClass="header_grid" />
                               <ItemTemplate><%#Eval("phone")%></ItemTemplate>
                           <ItemStyle HorizontalAlign="Left" />
                           <ItemStyle HorizontalAlign="Left" />
                       </asp:TemplateField>
                       
                       <asp:TemplateField HeaderText="Degree">
                       <HeaderStyle CssClass="header_grid" />
                               <ItemTemplate><%#Eval("degree_type")%></ItemTemplate>
                       </asp:TemplateField>
                       
                       <asp:TemplateField HeaderText="Exp. Salary">
                           
                           <ItemTemplate>
                           
                                   <%#Eval("expectedsalary", "{0:c0}") %>
                                   <%#Eval("currency_salary")%>
                                   
                              
                           </ItemTemplate>
                           <HeaderStyle CssClass="header_grid" />
                       </asp:TemplateField>
                       
                       <asp:BoundField DataField="availabledate" DataFormatString="{0:dd-MM-yyy}" 
                           HeaderText="Avail. Date">
                       <HeaderStyle CssClass="header_grid" />
                       </asp:BoundField>
                       
                       <asp:TemplateField HeaderText="Action">
                           <HeaderStyle CssClass="header_grid" />
                           <ItemTemplate>
                                
                               
                               <a href="profile_details_edu_en.aspx?id=<%#Eval("profile_id")%>">
                                 
                                    Detail 
                               </a>
                               
                               &nbsp;<a href="edit_profile_edu_en.aspx?id=<%#Eval("profile_id")%>">
                                 
                                    Edit
                               </a>
                               &nbsp;<asp:LinkButton ID="lnkButtonDelete" CommandArgument='<%#Eval("profile_id")%>' CommandName="Delete" runat="server">
                                  Delete
                               </asp:LinkButton>
                              
                               
                           </ItemTemplate>                             
                               
                           <ItemStyle HorizontalAlign="Center" />
                               
                       </asp:TemplateField>
                       <asp:BoundField DataField="date_created" DataFormatString="{0:dd/MM/yyy}" 
                           HeaderText="Date Create" SortExpression="date_created">
                       <HeaderStyle CssClass="header_grid" />
                       <ItemStyle HorizontalAlign="Center" />
                       </asp:BoundField>
                   </Columns>
                   <FooterStyle HorizontalAlign="Right" BackColor="DarkGray" BorderColor="DarkGray" 
                        BorderStyle="Solid" BorderWidth="1px" />
                
                   <PagerStyle HorizontalAlign="Center" VerticalAlign="Middle" />
               </asp:GridView>         	
</p>                            	
</asp:Content>

